<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
    <title>育儿家</title>
    <link rel="stylesheet" href="common/css/swiper.min.css">
    <link rel="stylesheet" href="common/css/common.css">
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
    <div class="swiper-container swiper-container-v">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <div class="swiper-container swiper-container-h">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <img src="img/home/banner1.png" alt="">
                        </div>
                        <div class="swiper-slide">
                            <img src="img/home/banner2.png" alt="">
                        </div>
                        <div class="swiper-slide">
                            <img src="img/home/banner3.png" alt="">
                        </div>
                    </div>
                    <!-- 如果需要导航按钮 -->
                    <div class="swiper-button-prev"></div>
                    <div class="swiper-button-next"></div>
                </div>
            </div>
            <div class="swiper-slide"></div>
            <div class="swiper-slide"></div>
            <div class="swiper-slide"></div>
        </div>
    </div>
    <script src="common/js/jquery-2.1.4.min.js"></script>
    <script src="common/js/swiper.min.js"></script>
    <script>
      window.onload=function(){

        var swiperV = new Swiper('.swiper-container-v', {
            direction: 'vertical',
            mousewheel: true,
        });
        var swiperH = new Swiper('.swiper-container-h', {
            loop: true,
            spaceBetween: 0,
            spped:1500,
            // autoplay: {
            //     delay: 2500,
            //     disableOnInteraction: false,
            // },
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        });
        
      }
    </script>
</body>
</html>